package org.thirdeyetvg.ncanreader.helper;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class TextReader {

	public String readFile(String fileName) throws IOException {
		StringBuilder stringBuilder = new StringBuilder();
		String line;

		BufferedReader reader = new BufferedReader(new FileReader(fileName));
		while ((line = reader.readLine()) != null) {
			stringBuilder.append(line);
		}
		return stringBuilder.toString();
	}

}
